class Tortoise:
    #属性
    bodyColor='green'
    fontNum=4
    weight=10
    hasShell=True

    #会爬
    def caawl(self):
        print('乌龟会爬..')


    #吃东西
    def eat(self):
         print('乌龟吃东西..')
    
    # 会睡觉
    def sleep(self):
         print('乌龟睡觉..')


    # 会缩到壳丽
    def protect(self):
        print('乌龟缩到壳里..')


t = Tortoise()
print(t.weight)
t.eat()
t.protect()
t.sleep()
t.caawl()
